package com.demo.seckill.mybatis;

import java.util.List;

import org.apache.ibatis.annotations.*;

/**
 * @author libo
 * @ClassName UserMapper
 * @date 2018/12/28 16:25
 */
@Mapper
public interface CarMapper {
    @Select("SELECT * FROM `car` WHERE user_id = #{userId}")
    @Results({
            @Result(property = "userId", column = "user_id"),
    })
    List<Car> findCarByUserId(int userId);
}
